package com.helloscala.model

import org.squeryl.KeyedEntity
import yangbajing.util.Imports.Y

class MUserPassword(val id: String, val password: String, val salt: String) extends KeyedEntity[String] {
  def matchPassword(v: String): Boolean =
    password == Y.ySha1(salt + v)
}
